import { createApp } from 'vue'
import App from './App.vue'
import "./common.css"
import "../flexble.js"
import router from './router/index'
import 'element-plus/dist/index.css'
import notify from './global/index'
import axios  from './until/http'
import pinia from './store/pinia'
import "./assets/css/iconfont.css"
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import { ElMessage } from 'element-plus'
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.config.globalProperties.$outsideHttp = axios.networkInstace // 配置外网的接口
app.config.globalProperties.$insideHttp = axios.instace // 配置本地串口接口
app.config.globalProperties.$downHttp = axios.downInstance // 配置导出excel的接口
app.config.globalProperties.$adminHttp = axios.adminInstance // 配置后台接口
app.config.globalProperties.$message = ElMessage
app.use(router)
app.use(pinia)
app.use(notify)
app.mount('#app')

